<template>
  <div>
    <div>
      {{userName}}: 你好 vue3
    </div>
    <div>
      <addressComponent></addressComponent>
    </div>
    <div>{{help}}</div>
    <div>{{help2}}</div>
  </div>
</template>

<script>
// import mjs
import { help } from './help.mjs'
// import js
import { help2 } from './help2.js'
// 必须添加 .vue 后缀
import addressComponent from "./addressComponent.vue"

export default {
  name: "index",
  components: {addressComponent},
  data() {
    return {
      userName: "张三",
      help,
      help2,
    }
  },
  created() {
    console.log(help);
    console.log(help2);
  },
  methods: {}
}
</script>
